import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/material.dart' hide Action;

import 'action.dart';
import 'state.dart';

Widget buildView(AboutState state, Dispatch dispatch, ViewService viewService) {
  return new Scaffold(
      appBar: new AppBar(
          centerTitle: true,
          elevation: 2.0,
          title: new Text(
            "关于",
            style: TextStyle(color: Colors.black54, fontSize: 18),
          )),
      body: Column(
        children: <Widget>[
          Spacer(),
          Image.asset("assets/images/app_icon.png", width: 110, height: 110),
          Text(state.version),
          SizedBox(height: 40),
          Card(
            key: null,
            shape: RoundedRectangleBorder(
              borderRadius: BorderRadius.circular(10.0),
            ),
            margin: EdgeInsets.all(20),
            child: new Column(
              children: [
                Container(
                  margin: EdgeInsets.all(20),
                  child: Row(
                    children: <Widget>[
                      SizedBox(
                        child: Text('客服电话'),
                        width: 100,
                      ),
                      Spacer(),
                      Text('400-881-8019'),
                      Spacer(),
                    ],
                  ),
                ),
                new Divider(
                  height: 1,
                ),
                Container(
                  margin: EdgeInsets.all(20),
                  child: Row(
                    children: <Widget>[
                      SizedBox(
                        child: Text('客服QQ'),
                        width: 100,
                      ),
                      Spacer(),
                      Text('2549056951'),
                      Spacer(),
                    ],
                  ),
                ),
                new Divider(
                  height: 1,
                ),
                Container(
                  margin: EdgeInsets.all(20),
                  child: Row(
                    children: <Widget>[
                      SizedBox(
                        child: Text('客服邮箱'),
                        width: 100,
                      ),
                      Spacer(),
                      Text('contact@inketang.com'),
                      Spacer(),
                    ],
                  ),
                ),
                new Divider(
                  height: 1,
                ),
                Container(
                  margin: EdgeInsets.all(20),
                  child: Row(
                    children: <Widget>[
                      SizedBox(
                        child: Text('公众号'),
                        width: 100,
                      ),
                      Spacer(),
                      Text('inketang888'),
                      Spacer(),
                    ],
                  ),
                ),
              ],
            ),
          ),
          SizedBox(height: 32),
          Text('Copyright@2015-2020'),
          Text('北京理琪教育科技公司'),
          Spacer(),
        ],
      ));
}
